﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestLogConsoleApp
{
    class TestExceptionlessLog
    {
        private readonly ILogger<TestExceptionlessLog> _logger;

        public TestExceptionlessLog(ILogger<TestExceptionlessLog> logger)
        {
            this._logger = logger;
        }

        public void WriteTestExceptionless()
        {
            _logger.LogError("认为测试bug Error");
            _logger.LogDebug("巴拉巴巴拉 Debug");
            _logger.LogInformation("info 人为测试");
        }
    }
}
